from CPU import CPU

class CPUManager:
    
    def __init__(self,cantCPU, aResourceManager,anOutputQueue,aScheduler):
        self.cantCPU = cantCPU
        
        self.aResourceManager = aResourceManager 
        self.anOutputQueue = anOutputQueue
        self.aScheduler = aScheduler
        self.rQueue = self.aScheduler.readyQueue

    def startUp(self):
        for cpu in range(self.cantCPU):
            x = CPU(self.rQueue, self.aResourceManager,self.anOutputQueue,self.aScheduler)
            x.setQuantumPolicy()
            x.setQuantum()   